<template>
  <section>
    <h2>我的爱好</h2>
    <p>爱好名称：{{ name }}</p>
    <p>爱好时长：{{ time }}</p>
    <router-view></router-view>
  </section>
</template>
  
  <script>
export default {
  props: ["name","time"]
};
</script>
  
  <style scoped>
section {
  color: #0f0;
}
</style>